package com.lp.service.impl;

import com.lp.dao.RoleDao;
import com.lp.po.Role;
import com.lp.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleDao roleDao;

    public Role findByid(Integer id) throws Exception {
        return roleDao.selectByPrimaryKey(id);
    }
}
